<template>
    <div class="live_wrap">
        <div class="title_wrap">
            <div class="title">
                <div class="content">十三邀同款推荐</div>
                <div class="line"></div>
            </div>
        </div>
        <div class="img" v-for="(item, index) in info.imgArr" :key="index" @click="$emit('onTapLive', index)">
            <img :src="item.img" alt="">
        </div>
        <div class="more_wrap">
            <div class="title">更多推荐</div>
            <div class="flex">
                <div class="more" v-for="(item, index) in info.more" :key="index" @click="$emit('onTapLiveMore', index)">
                    <img :src="item.img" >
                    <div class="more_title">{{ item.title }}</div>
                    <div class="btn">点击了解</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        info: {
            type: Object,
            default: () => {
                return {}
            }
        }
    },
    data () {
        return {

        }
    }
}
</script>
<style lang="less" scoped>
.live_wrap{
    // padding-top: 0.44rem;
    .title_wrap{
        height: 1.44rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        .title{
            font-size: 0.38rem;
            color: #ffffff;
            box-shadow: 0 -0.16rem 0px #cb8345 inset;
            display: inline-block;
            padding: 0 0.1rem;
        }
    }
    .img, img{
        width: 100%;
        display: block;
    }
    .img{
        margin-bottom: 0.29rem;
        &:last-of-type{
            margin-bottom: 0;
        }
    }
    .more_wrap{
        background-color: #070604;
        .title{
            padding: 0.62rem 0 0.6rem;
            color: #fff;
            font-size: 0.34rem;
            text-align: center;
            position: relative;
            font-weight: 700;
            &::after,&::before{
                content: '';
                width: 2.45rem;
                height: 1px;
                top: 50%;
                transform: translateY(-50%);
                position: absolute;
                background-color: #fff;
            }
            &::after{
                left: 0.3rem;
            }
            &::before{
                right: 0.3rem;
            }
        }
        .flex{
            padding: 0 0.3rem;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            box-sizing: border-box;
            .more{
                width: 3.35rem;
                margin-bottom: 0.6rem;
                img{
                    width: 100%;
                }
                .more_title{
                    height: 0.65rem;
                    line-height: 0.65rem;
                    text-align: center;
                    font-size: 0.21rem;
                    color: #ffffff;
                }
                .btn{
                    margin: 0 auto;
                    width: 1.4rem;
                    height: 0.35rem;
                    line-height: 0.35rem;
                    border-radius: 0.07rem;
                    border: 1px solid #ffffff;
                    color: #ffffff;
                    font-size: 0.21rem;
                    text-align: center;
                }
            }
        }
    }
}
</style>
